package com.ly.pojo.dto;

import lombok.Data;
import jakarta.validation.constraints.NotNull;
import java.net.URL;
import jakarta.validation.constraints.NotBlank;
import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 解决方案入参对象
 *
 * @author Administrator
 * @date 2025-03-07 10:51:13
 */
@Data
public class SolutionDTO {

    /**
     * 解决方案ID
     */
    @NotNull(groups = { UpdateGroup.class, DeleteGroup.class }, message = "解决方案ID不能为空")
    @Schema(description = "解决方案ID")
    private Integer solutionId;

    /**
     * 解决方案标题
     */
    @NotBlank(groups = { CreateGroup.class }, message = "解决方案标题不能为空")
    @Schema(description = "解决方案标题")
    private String title;

    /**
     * 解决方案内容
     */
    @Schema(description = "解决方案内容")
    private String content;

    /**
     * 图片URL
     */
    @Schema(description = "图片URL")
    private String imageUrl;
}
